package com.run.cat.common.exception;


import com.run.cat.common.enums.CodeEnum;

public class BaseException extends  RuntimeException {

    public CodeEnum codeEnum;

    public String message;

    @Override
    public String getMessage() {
        if(codeEnum == null){
            return message;
        }
        return codeEnum.getTop();
    }

}
